package com.iflytek.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.iflytek.common.Result;
import com.iflytek.dto.PageDTO;
import com.iflytek.dto.RoleDTO;
import com.iflytek.model.Role;
import com.iflytek.vo.PageVO;
import com.iflytek.vo.RoleVO;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author h_t
 * @since 2023-09-23
 */
public interface RoleService extends IService<Role> {


    Result<List<RoleVO>> findAll(RoleDTO dto);

    Result<PageVO<RoleVO>> getPage(PageDTO<RoleDTO> dto);

    Result<Boolean> saveRe(RoleDTO dto);
    Result<Boolean> DeleteRole(Long id);

    Result<RoleVO> findById(Long id);

    Result<Boolean> updateRole(RoleDTO dto);
}